<!DOCTYPE html>
<html>
  <head lang="en">
    <meta charset="UTF-8" />
    <title>Viewer</title>
    <!-- Editor -->
    <link rel="stylesheet" href="http://localhost:8080/dist/cdn/toastui-editor-viewer.css" />
    <link rel="stylesheet" href="../dist/cdn/toastui-editor-plugin-table-merged-cell.css" />
  </head>
  <body>
    <div class="code-html">
      <div id="viewer"></div>
    </div>
    <!-- Editor's Viewer -->
    <script src="http://localhost:8080/dist/cdn/toastui-editor-viewer.js"></script>
    <!-- Plugin -->
    <script src="./data.js"></script>
    <script src="../dist/cdn/toastui-editor-plugin-table-merged-cell.js"></script>
    <script class="code-js">
      const Viewer = toastui.Editor;
      const { tableMergedCell } = Viewer.plugin;

      const instance = new Viewer({
        el: document.querySelector('#viewer'),
        previewStyle: 'vertical',
        height: '500px',
        initialValue: content1,
        plugins: [tableMergedCell]
      });
    </script>
  </body>
</html>
